<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>人员姓名</label>
              <span>（人员名称，用于前端展示）</span>
              <input class="form-control" name="name" placeholder="请输入人员名称" value="{$info['name']|default=''}" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
              <label>年龄</label>
              <input class="form-control" name="age" placeholder="请输入年龄" value="{$info['age']|default='0'}" type="text">
            </div>
          </div> 
            
         <div class="col-md-6">
            <div class="form-group">
              <label>性别</label>
              <select name="sex" class="form-control">
                    <option value="0"{notempty name='info'}{if condition="$info['sex'] eq 0"} selected="selected"{/if}{/notempty}>男</option>
                    <option value="1"{notempty name='info'}{if condition="$info['sex'] eq 1"} selected="selected"{/if}{/notempty}>女</option>
                </select>
            </div>
          </div> 
          <div class="col-md-6">
            <div class="form-group">
              <label>证件照</label>
              {assign name="pic" value="$info.pic|default='0'" /}

              {:widget('file/index', ['name' => 'pic', 'value' => $pic, 'type' => 'img'])}
            </div>
          </div> 
            
            
          </div>
        </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
        
        {include file="layout/edit_btn_group"/}
      </div>
        
      </div>

</form> 